import javax.swing.JTextArea;
import java.text.*;
import java.io.*;

public class MoveListWindow extends JTextArea implements Serializable {
	
	DecimalFormat df = new DecimalFormat("#.#");
	
	public void Refresh(Player a) {
		setText("");
		append("Ability List:\n\n");
		for (Ability b : a.getAbilities()) {
			append(b.getName() + "\t" + df.format(Math.abs(b.calcMove_Cost(a))) + "\n" + b.calcDamage(a) + "\n");
		}
		append("\n");
		append("Current Movement Points: " + df.format(a.numActionPoints()) + "\n");
		
	}

}
